
#pragma once

class CSglView;

class CSglFrmWnd : public CFrameWnd
{

public:

	enum RENDER_TYPE
	{
		RENDER_NONE,
		RENDER_GDI,
		RENDER_DDRAW,
		RENDER_D3D,
	};

	virtual ~CSglFrmWnd();

	CSglView* GetRightPane(VOID);
	HANDLE GetCurrentRender(VOID);
	VOID EnableRender(RENDER_TYPE eRenderType, BOOL bEnable);
	VOID SetCurrentRender(RENDER_TYPE eRenderType, HANDLE hRender);

	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

protected:

	CSglFrmWnd();
	DECLARE_DYNCREATE(CSglFrmWnd)

	HANDLE			m_hRender;

	CSplitterWnd	m_wndSplitter;
	CStatusBar		m_wndStatusBar;
	CToolBar		m_wndToolBar;
	CReBar			m_wndReBar;
	CDialogBar		m_wndDlgBar;

	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
	afx_msg void OnViewStyle(UINT nCommandID);
	afx_msg void OnRenderGdi(VOID);
	afx_msg void OnRenderDdraw(VOID);
	afx_msg void OnRenderD3d(VOID);

	DECLARE_MESSAGE_MAP()

};


